Blockwell

Humanscape

ERC20

This contract is an ERC20 token.

Name Humanscape
Symbol HUM
Decimals 18
Total Supply 1,084,734,273 HUM

About link description

Humanscape (HUM) is a cryptocurrency and operates on the Ethereum platform. Humanscape has a current supply of 1,084,734,273.38 with 533,384,635.0588279 in circulation. The last known price of Humanscape is 0.08410855 USD and is down -3.97 over the last 24 hours. It is currently trading on 4 active market(s) with $5,428,234.79 traded over the last 24 hours. More information can be found at https://humanscape.io/.

Stats

Public Functions 18
Event Types 5
Code Size 12,847 bytes

Events (5) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Burn Event

Parameters help
burner
address help
value
uint256 help

Mint Event

Parameters help
to
address help
amount
uint256 help

MintFinished Event

Parameters help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Constant

string help
Humanscape

symbol Constant

string help
HUM

decimals Constant

uint8 help
18

INITIAL_SUPPLY Constant

uint256 help
1250 * 1000 * 1000 * UNKNOWN VALUE

isUnlocked Variable

bool help

mintingFinished Variable

bool help

root Variable

address help

owners Variable

mapping(address => address) help

blacklist Variable

mapping(address => bool) help

allowed Variable

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

balances Variable

mapping(address => uint256) help
Internal Variable

totalSupply_ Variable

uint256 help
Internal Variable

Functions Expand All Collapse All

newOwner keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function newOwner(address _owner) external onlyOwner returns (bool) {
  require(_owner != 0);
  require(owners[_owner] == 0);
  owners[_owner] = msg.sender;
  return true;
}

deleteOwner keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function deleteOwner(address _owner) external onlyOwner returns (bool) {
  require(
    owners[_owner] == msg.sender || (owners[_owner] != 0 && msg.sender == root)
  );
  owners[_owner] = 0;
  return true;
}

addToBlacklist keyboard_arrow_up

Parameters help

Name Type
_villain
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function addToBlacklist(address _villain) external onlyOwner {
  blacklist[_villain] = true;
}

addManyToBlacklist keyboard_arrow_up

Parameters help

Name Type
_villains
address[] help

Properties

Visibility help public
Mutability help transaction
Source Code
function addManyToBlacklist(address[] _villains) external onlyOwner {
  for (uint256 i = 0; i < _villains.length; i++) {
    blacklist[_villains[i]] = true;
  }
}

removeFromBlacklist keyboard_arrow_up

Parameters help

Name Type
_villain
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function removeFromBlacklist(address _villain) external onlyOwner {
  blacklist[_villain] = false;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
function totalSupply() public view returns (uint256) {
  return totalSupply_;
}

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help view
Source Code
function balanceOf(address _owner) public view 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)
  public
  onlyTransferable
  notBlacklisted
  returns (bool)
{
  return super.transfer(_to, _value);
}

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) public {
  _burn(msg.sender, _value);
}

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

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

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
) public onlyTransferable notBlacklisted 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
Source Code
function approve(address _spender, uint256 _value) public returns (bool) {
  allowed[msg.sender][_spender] = _value;
  emit Approval(msg.sender, _spender, _value);
  return true;
}

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function increaseApproval(address _spender, uint256 _addedValue)
  public
  returns (bool)
{
  allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(
    _addedValue
  );
  emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  public
  returns (bool)
{
  uint256 oldValue = allowed[msg.sender][_spender];
  if (_subtractedValue > oldValue) {
    allowed[msg.sender][_spender] = 0;
  } else {
    allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
  }
  emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

mint keyboard_arrow_up

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function mint(address _to, uint256 _amount)
  public
  onlyOwner
  canMint
  returns (bool)
{
  totalSupply_ = totalSupply_.add(_amount);
  balances[_to] = balances[_to].add(_amount);
  emit Mint(_to, _amount);
  emit Transfer(address(0), _to, _amount);
  return true;
}

finishMinting keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function finishMinting() public onlyOwner canMint returns (bool) {
  mintingFinished = true;
  emit MintFinished();
  return true;
}

unlockTransfer keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function unlockTransfer() public onlyOwner {
  isUnlocked = true;
}

lockTransfer keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function lockTransfer() public onlyOwner {
  isUnlocked = 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.

internal BurnableToken._burn keyboard_arrow_up

Parameters help

Name Type
_who
address help
_value
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _burn(address _who, uint256 _value) internal {
  require(_value <= balances[_who]);
  // no need to require value <= totalSupply, since that would imply the
  // sender's balance is greater than the totalSupply, which *should* be an assertion failure

  balances[_who] = balances[_who].sub(_value);
  totalSupply_ = totalSupply_.sub(_value);
  emit Burn(_who, _value);
  emit Transfer(_who, address(0), _value);
}