Blockwell

Humaniq

ERC20

This contract is an ERC20 token.

Name Humaniq
Symbol HMQ
Decimals 8
Total Supply 207,143,695 HMQ

About link description

Humaniq (HMQ) is a cryptocurrency and operates on the Ethereum platform. Humaniq has a current supply of 207,143,695.03559843 with 185,811,695.03559843 in circulation. The last known price of Humaniq is 0.00710886 USD and is down -7.96 over the last 24 hours. It is currently trading on 8 active market(s) with $82,824.21 traded over the last 24 hours. More information can be found at https://humaniq.com/.

Stats

Public Functions 10
Event Types 3
Code Size 8,981 bytes

Events (3) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Issuance Event

Parameters help
to
address help
value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Constant

string help
Humaniq

symbol Constant

string help
HMQ

decimals Constant

uint8 help
8

allocationAddressICO Constant

address help

allocationAddressPreICO Constant

address help

preICOSupply Constant

uint help
the result of calling mul with UNKNOWN ARGUMENT, UNKNOWN ARGUMENT

ICOSupply Constant

uint help
the result of calling mul with UNKNOWN ARGUMENT, UNKNOWN ARGUMENT

minter Variable

address help

founder Variable

address help

multisig Variable

address help

maxTotalSupply Variable

uint help

totalSupply Variable

uint256 help

balances Variable

mapping(address => uint256) help
Internal Variable

allowed Variable

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

Functions Expand All Collapse All

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function totalSupply() constant returns (uint256 supply) {}

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
Source Code
function transfer(address _to, uint256 _value) returns (bool success) {
  if (
    balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]
  ) {
    balances[msg.sender] -= _value;
    balances[_to] += _value;
    Transfer(msg.sender, _to, _value);
    return true;
  } else {
    return false;
  }
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) returns (bool success) {
  if (
    balances[_from] >= _value &&
    allowed[_from][msg.sender] >= _value &&
    balances[_to] + _value > balances[_to]
  ) {
    balances[_to] += _value;
    balances[_from] -= _value;
    allowed[_from][msg.sender] -= _value;
    Transfer(_from, _to, _value);
    return true;
  } else {
    return false;
  }
}

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) returns (bool success) {
  allowed[msg.sender][_spender] = _value;
  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)
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

issueTokens keyboard_arrow_up

Parameters help

Name Type
_for
address help
tokenCount
uint help

Properties

Visibility help public
Mutability help payable
Source Code
function issueTokens(address _for, uint256 tokenCount)
  external
  payable
  onlyMinter
  returns (bool)
{
  if (tokenCount == 0) {
    return false;
  }

  if (add(totalSupply, tokenCount) > maxTotalSupply) {
    throw;
  }

  totalSupply = add(totalSupply, tokenCount);
  balances[_for] = add(balances[_for], tokenCount);
  Issuance(_for, tokenCount);
  return true;
}

changeMinter keyboard_arrow_up

Parameters help

Name Type
newAddress
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeMinter(address newAddress) public onlyFounder returns (bool) {
  // Forbid previous emission contract to distribute tokens minted during ICO stage
  delete allowed[allocationAddressICO][minter];

  minter = newAddress;

  // Allow emission contract to distribute tokens minted during ICO stage
  allowed[allocationAddressICO][minter] = balanceOf(allocationAddressICO);
}

changeFounder keyboard_arrow_up

Parameters help

Name Type
newAddress
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeFounder(address newAddress) public onlyFounder returns (bool) {
  founder = newAddress;
}

changeMultisig keyboard_arrow_up

Parameters help

Name Type
newAddress
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeMultisig(address newAddress) public onlyFounder returns (bool) {
  multisig = newAddress;
}

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.mul keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction
Source Code
function mul(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a * b;
  assert(a == 0 || c / a == b);
  return c;
}

internal SafeMath.div keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction
Source Code
function div(uint256 a, uint256 b) internal returns (uint256) {
  assert(b > 0);
  uint256 c = a / b;
  assert(a == b * c + (a % b));
  return c;
}

internal SafeMath.sub keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function sub(uint256 a, uint256 b) internal returns (uint256) {
  assert(b <= a);
  return a - b;
}

internal SafeMath.add keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function add(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a + b;
  assert(c >= a);
  return c;
}

internal SafeMath.assert keyboard_arrow_up

Parameters help

Name Type
assertion
bool help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function assert(bool assertion) internal {
  if (!assertion) {
    throw;
  }
}