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
State Variables (8) keyboard_arrow_up
Functions
newOwner keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
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
addToBlacklist keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function addToBlacklist(address _villain) external onlyOwner {
blacklist[_villain] = true;
}
addManyToBlacklist keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function addManyToBlacklist(address[] _villains) external onlyOwner {
for (uint256 i = 0; i < _villains.length; i++) {
blacklist[_villains[i]] = true;
}
}
removeFromBlacklist keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function removeFromBlacklist(address _villain) external onlyOwner {
blacklist[_villain] = false;
}
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Modifiers help
onlyTransferable checks for the following:
One or more of the following:
-
owners for the sender's address
must not be equal to
0
- ORisUnlocked must be true
notBlacklisted checks for the following:
Requirements help
Source Code
function transfer(address _to, uint256 _value)
public
onlyTransferable
notBlacklisted
returns (bool)
{
return super.transfer(_to, _value);
}
burn keyboard_arrow_up
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
Modifiers help
onlyTransferable checks for the following:
One or more of the following:
-
owners for the sender's address
must not be equal to
0
- ORisUnlocked must be true
notBlacklisted checks for the following:
Requirements help
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public onlyTransferable notBlacklisted returns (bool) {
return super.transferFrom(_from, _to, _value);
}
approve keyboard_arrow_up
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
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
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
Modifiers help
onlyOwner checks for the following:
canMint checks for the following:
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
unlockTransfer keyboard_arrow_up
lockTransfer keyboard_arrow_up
Internal Functions
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
Requirements help
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);
}