Blockwell

Colu Local Network

ERC20

This contract is an ERC20 token.

Name Colu Local Network
Symbol CLN
Decimals 18
Total Supply 1,540,701,334 CLN

About

Stats

Public Functions 13
Event Types 8
Code Size 12,757 bytes

Library Use

Uses SafeMath for uint256.

Events (8) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint help

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

OwnershipRequested Event

Parameters help
_by
address help
_to
address help

OwnershipTransferred Event

Parameters help
_from
address help
_to
address help

TokensTransferable Event

Parameters help

Transfer Event

Parameters help
from
address help
to
address help
value
uint help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

TransferAndCall Event

Parameters help
from
address help
to
address help
value
uint help
data
bytes help

name Constant

string help
Colu Local Network

symbol Constant

string help
CLN

decimals Constant

uint8 help
18

isTransferable Variable

bool help

owner Variable

address help

newOwnerCandidate Variable

address help

totalSupply Variable

uint 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

requestOwnershipTransfer keyboard_arrow_up

Parameters help

Name Type
_newOwnerCandidate
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

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

  newOwnerCandidate = _newOwnerCandidate;

  OwnershipRequested(msg.sender, newOwnerCandidate);
}

acceptOwnership keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function acceptOwnership() external onlyOwnerCandidate {
  address previousOwner = owner;

  owner = newOwnerCandidate;
  newOwnerCandidate = address(0);

  OwnershipTransferred(previousOwner, owner);
}

transferAnyERC20Token keyboard_arrow_up

Parameters help

Name Type
_tokenAddress
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferAnyERC20Token(address _tokenAddress, uint256 _amount)
  public
  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) public constant returns (uint256 balance) {
  return balances[_owner];
}

Parameters help

Name Type
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function transfer(address _to, uint256 _value) public returns (bool success);

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public returns (bool success);

Parameters help

Name Type
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _value)
  public
  returns (bool success);

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];
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _value)
  public
  transferable
  returns (bool)
{
  return super.approve(_spender, _value);
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transfer(address _to, uint256 _value)
  public
  transferable
  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

Requirements help

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

transferAndCall keyboard_arrow_up

Parameters help

Name Type
_to
address help
_value
uint help
_data
bytes help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferAndCall(
  address _to,
  uint256 _value,
  bytes _data
) public transferable returns (bool success) {
  return super.transferAndCall(_to, _value, _data);
}

makeTokensTransferable keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function makeTokensTransferable() external onlyOwner {
  if (isTransferable) {
    return;
  }

  isTransferable = true;

  TokensTransferable();
}

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.

internal Standard677Token.contractFallback keyboard_arrow_up

Parameters help

Name Type
_to
address help
_value
uint help
_data
bytes help

Properties

Visibility help private
Mutability help transaction
Source Code
function contractFallback(
  address _to,
  uint256 _value,
  bytes _data
) private returns (bool) {
  ERC223Receiver receiver = ERC223Receiver(_to);
  require(receiver.tokenFallback(msg.sender, _value, _data));
  return true;
}

internal Standard677Token.isContract keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help private
Mutability help constant
Source Code
function isContract(address _addr) private constant returns (bool is_contract) {
  // retrieve the size of the code on target address, this needs assembly
  uint256 length;
  assembly {
    length := extcodesize(_addr)
  }
  return length > 0;
}