Blockwell

Zilliqa

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

AdminTransferred Event

Parameters help
previousAdmin
address help
newAdmin
address help

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Burn Event

Parameters help
_burner
address help
_value
uint help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

PauseOwnerAdmin Event

Parameters help
newState
bool help

PausePublic Event

Parameters help
newState
bool help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Constant

string help
Zilliqa

symbol Constant

string help
ZIL

decimals Constant

uint8 help
12

totalSupply Variable

uint256 help

pausedPublic Variable

bool help

pausedOwnerAdmin Variable

bool help

admin Variable

address help

owner Variable

address help

allowed Variable

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

balances Variable

mapping(address => uint256) help
Internal Variable

Functions Expand All Collapse All

transferOwnership keyboard_arrow_up

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transferOwnership(address newOwner) public onlyOwner {
  require(newOwner != address(0));
  OwnershipTransferred(owner, newOwner);
  owner = newOwner;
}

pause keyboard_arrow_up

Parameters help

Name Type
newPausedPublic
bool help
newPausedOwnerAdmin
bool help

Properties

Visibility help public
Mutability help transaction

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);
}

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

Modifiers help

whenNotPaused checks for the following:
Source Code
function transfer(address _to, uint256 _value)
  public
  whenNotPaused
  returns (bool)
{
  return super.transfer(_to, _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

Modifiers help

whenNotPaused checks for the following:
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public whenNotPaused 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

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

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

Visibility help public
Mutability help transaction

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

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction

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);
}

Parameters help

Name Type
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transfer(address _to, uint256 _value)
  validDestination(_to)
  returns (bool)
{
  return super.transfer(_to, _value);
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) validDestination(_to) returns (bool) {
  return super.transferFrom(_from, _to, _value);
}

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint help

Properties

Visibility help public
Mutability help transaction
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

Parameters help

Name Type
_from
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

null
Source Code
function burnFrom(address _from, uint256 _value) returns (bool) {
  assert(transferFrom(_from, msg.sender, _value));
  return burn(_value);
}

emergencyERC20Drain keyboard_arrow_up

Parameters help

Name Type
token
ERC20 help
amount
uint help

Properties

Visibility help public
Mutability help transaction
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

Parameters help

Name Type
newAdmin
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeAdmin(address newAdmin) onlyOwner {
  // owner can re-assign the admin
  AdminTransferred(admin, newAdmin);
  admin = newAdmin;
}

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.