Blockwell

Centrality Token

ERC20

This contract is an ERC20 token.

Name Centrality Token
Symbol CENNZ
Decimals 18
Total Supply 1,200,000,000 CENNZ

About

Stats

Public Functions 8
Event Types 2
Code Size 4,171 bytes

Events (2) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint help

Transfer Event

Parameters help
from
address help
to
address help
value
uint help

name Variable

string help

symbol Variable

string help

decimals Variable

uint help

totalSupply Variable

uint help

owner Variable

address help

totalSupply Variable

uint help

balances Variable

mapping(address => uint) help
Internal Variable

allowed Variable

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

Functions Expand All Collapse All

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
_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
_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) {
  balances[msg.sender] = safeSub(balances[msg.sender], _value);
  balances[_to] = safeAdd(balances[_to], _value);
  Transfer(msg.sender, _to, _value);
  return true;
}

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) {
  var _allowance = allowed[_from][msg.sender];

  balances[_to] = safeAdd(balances[_to], _value);
  balances[_from] = safeSub(balances[_from], _value);
  allowed[_from][msg.sender] = safeSub(_allowance, _value);
  Transfer(_from, _to, _value);
  return true;
}

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

Parameters help

Name Type
_newOwner
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
Source Code
function transferOwnership(address _newOwner) public onlyOwner {
  balances[_newOwner] = safeAdd(balances[owner], balances[_newOwner]);
  balances[owner] = 0;
  Ownable.transferOwnership(_newOwner);
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function() public {}

Parameters help

Name Type
tokenAddress
address help
amount
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

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

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 SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help pure
Source Code
function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
  sAssert(b <= a);
  return a - b;
}

internal SafeMath.safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help pure
Source Code
function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) {
  uint256 c = a + b;
  sAssert(c >= a && c >= b);
  return c;
}

internal SafeMath.sAssert keyboard_arrow_up

Parameters help

Name Type
assertion
bool help

Properties

Visibility help internal
Mutability help pure
Source Code
function sAssert(bool assertion) internal pure {
  if (!assertion) {
    revert();
  }
}