Blockwell

KOK Coin

ERC20

This contract is an ERC20 token.

Name KOK Coin
Symbol KOK
Decimals 18
Total Supply 5,000,000,000 KOK

About link description

KOK (KOK) is a cryptocurrency and operates on the Ethereum platform. KOK has a current supply of 5,000,000,000 with 107,333,422.49 in circulation. The last known price of KOK is 1.92514761 USD and is up 0.04 over the last 24 hours. It is currently trading on 5 active market(s) with $2,712,902.00 traded over the last 24 hours. More information can be found at https://kok-play.io/.

Stats

Public Functions 11
Event Types 7
Code Size 4,442 bytes

Events (7) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Blacklisted Event

Parameters help
target
address help

DeleteFromBlacklist Event

Parameters help
target
address help

RejectedPaymentFromBlacklistedAddr Event

Parameters help
from
address help
to
address help
value
uint256 help

RejectedPaymentToBlacklistedAddr 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

TransferOwnership Event

Parameters help
oldaddr
address help
newaddr
address help

symbol Constant

string help
KOK

name Constant

string help
KOK Coin

decimals Constant

uint8 help
18

totalSupply Constant

uint256 help
5000000000000000000000000000

stopped Variable

bool help

totalSupply Variable

uint256 help

owner Variable

address help

blackList Variable

mapping(address => int8) help

balances Variable

mapping(address => uint256) help

allowed Variable

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

Functions Expand All Collapse All

transferOwnership keyboard_arrow_up

Parameters help

Name Type
_new
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function transferOwnership(address _new) public onlyOwner {
  address oldaddr = owner;
  owner = _new;
  emit TransferOwnership(oldaddr, owner);
}

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _owner) public 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
  notStopped
  returns (bool success)
{
  require(balances[msg.sender] >= _value);

  if (blackList[msg.sender] > 0) {
    emit RejectedPaymentFromBlacklistedAddr(msg.sender, _to, _value);
    return false;
  }
  if (blackList[_to] > 0) {
    emit RejectedPaymentToBlacklistedAddr(msg.sender, _to, _value);
    return false;
  }

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

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 notStopped returns (bool success) {
  require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value);

  if (blackList[_from] > 0) {
    emit RejectedPaymentFromBlacklistedAddr(_from, _to, _value);
    return false;
  }
  if (blackList[_to] > 0) {
    emit RejectedPaymentToBlacklistedAddr(_from, _to, _value);
    return false;
  }

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

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
  notStopped
  returns (bool success)
{
  allowed[msg.sender][_spender] = _value;
  emit Approval(msg.sender, _spender, _value);
  return true;
}

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)
  public
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

airdrop keyboard_arrow_up

Parameters help

Name Type
_to
address[] help
_value
uint256[] help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function airdrop(address[] _to, uint256[] _value) public onlyOwner notStopped {
  for (uint256 i = 0; i < _to.length; i++) {
    if (balances[_to[i]] > 0) {
      continue;
    }
    transfer(_to[i], _value[i]);
  }
}

blacklisting keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function blacklisting(address _addr) public onlyOwner {
  blackList[_addr] = 1;
  emit Blacklisted(_addr);
}

deleteFromBlacklist keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function deleteFromBlacklist(address _addr) public onlyOwner {
  blackList[_addr] = -1;
  emit DeleteFromBlacklist(_addr);
}

stop keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function stop() onlyOwner {
  stopped = true;
}

start keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function start() onlyOwner {
  stopped = false;
}

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.