ERC20
This contract is an ERC20 token.
Name
Zilliqa
Symbol
ZIL
Decimals
12
Total Supply
213,272,942 ZIL
About
Stats
Public Functions
15
Event Types
7
Code Size
11,185 bytes
Events (7) keyboard_arrow_up
State Variables (7) keyboard_arrow_up
Functions
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
pause keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Requirements help
UNKNOWN VALUE must not be true
Source Code
function pause(bool newPausedPublic, bool newPausedOwnerAdmin)
public
onlyOwner
{
require(!(newPausedPublic == false && newPausedOwnerAdmin == true));
pausedPublic = newPausedPublic;
pausedOwnerAdmin = newPausedOwnerAdmin;
PausePublic(newPausedPublic);
PauseOwnerAdmin(newPausedOwnerAdmin);
}
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
approve keyboard_arrow_up
Modifiers help
whenNotPaused checks for the following:
Source Code
function approve(address _spender, uint256 _value)
public
whenNotPaused
returns (bool)
{
return super.approve(_spender, _value);
}
increaseApproval keyboard_arrow_up
Modifiers help
whenNotPaused checks for the following:
Source Code
function increaseApproval(address _spender, uint256 _addedValue)
public
whenNotPaused
returns (bool success)
{
return super.increaseApproval(_spender, _addedValue);
}
decreaseApproval keyboard_arrow_up
Modifiers help
whenNotPaused checks for the following:
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
public
whenNotPaused
returns (bool success)
{
return super.decreaseApproval(_spender, _subtractedValue);
}
transfer keyboard_arrow_up
transferFrom keyboard_arrow_up
burn keyboard_arrow_up
Source Code
function burn(uint256 _value) returns (bool) {
balances[msg.sender] = balances[msg.sender].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(msg.sender, _value);
Transfer(msg.sender, address(0x0), _value);
return true;
}
burnFrom keyboard_arrow_up
emergencyERC20Drain keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function emergencyERC20Drain(ERC20 token, uint256 amount) onlyOwner {
// owner can drain tokens that are sent here by mistake
token.transfer(owner, amount);
}
changeAdmin keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function changeAdmin(address newAdmin) onlyOwner {
// owner can re-assign the admin
AdminTransferred(admin, newAdmin);
admin = newAdmin;
}
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.