Blockwell

EligmaToken

ERC20

This contract is an ERC20 token.

Name EligmaToken
Symbol ELI
Decimals 18
Total Supply 327,902,034 ELI

About

Stats

Public Functions 14
Event Types 6
Code Size 7,250 bytes

Events (6) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Burn Event

Parameters help
_from
address help
_value
uint help

ContractLocked Event

Parameters help
_untilBlock
uint256 help
_reason
string help

Mint Event

Parameters help
_to
address help
_value
uint256 help

OwnerUpdate Event

Parameters help
_prevOwner
address help
_newOwner
address help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

MAX_UINT256 Constant

uint256 help
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

standard Variable

string help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

mintingContractAddress Variable

address help

owner Variable

address help

newOwner Variable

address help

lockedUntilBlock Variable

uint256 help

supply Variable

uint256 help
Internal Variable

balances Variable

mapping(address => uint256) help
Internal Variable

allowances Variable

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

Functions Expand All Collapse All

Parameters help

Name Type
_newOwner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferOwnership(address _newOwner) public onlyOwner {
  require(_newOwner != owner);
  newOwner = _newOwner;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function acceptOwnership() public {
  require(msg.sender == newOwner);
  emit OwnerUpdate(owner, newOwner);
  owner = newOwner;
  newOwner = 0x0;
}

Parameters help

Name Type
_untilBlock
uint256 help
_reason
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function lockUntil(uint256 _untilBlock, string _reason) public onlyOwner {
  lockedUntilBlock = _untilBlock;
  emit ContractLocked(_untilBlock, _reason);
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _owner) public constant 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

Requirements help

Source Code
function transfer(address _to, uint256 _value)
  public
  lockAffected
  returns (bool success)
{
  require(_to != 0x0 && _to != address(this));
  balances[msg.sender] = safeSub(balanceOf(msg.sender), _value);
  balances[_to] = safeAdd(balanceOf(_to), _value);
  emit Transfer(msg.sender, _to, _value);
  return true;
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public lockAffected returns (bool success) {
  require(_to != 0x0 && _to != address(this));
  balances[_from] = safeSub(balanceOf(_from), _value);
  balances[_to] = safeAdd(balanceOf(_to), _value);
  allowances[_from][msg.sender] = safeSub(
    allowances[_from][msg.sender],
    _value
  );
  emit Transfer(_from, _to, _value);
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function approve(address _spender, uint256 _value)
  public
  lockAffected
  returns (bool success)
{
  allowances[msg.sender][_spender] = _value;
  emit 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)
  public
  constant
  returns (uint256 remaining)
{
  return allowances[_owner][_spender];
}

Parameters help

Name Type
_spender
address help
_value
uint256 help
_extraData
bytes help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function approveAndCall(
  address _spender,
  uint256 _value,
  bytes _extraData
) public lockAffected returns (bool success) {
  tokenRecipientInterface spender = tokenRecipientInterface(_spender);
  approve(_spender, _value);
  spender.receiveApproval(msg.sender, _value, this, _extraData);
  return true;
}

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 {
  require(msg.sender == mintingContractAddress);
  supply = safeAdd(supply, _amount);
  balances[_to] = safeAdd(balances[_to], _amount);
  emit Mint(_to, _amount);
  emit Transfer(0x0, _to, _amount);
}

Parameters help

Name Type
_amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _amount) public {
  balances[msg.sender] = safeSub(balanceOf(msg.sender), _amount);
  supply = safeSub(supply, _amount);
  emit Burn(msg.sender, _amount);
  emit Transfer(msg.sender, 0x0, _amount);
}

Parameters help

Name Type
_tokenAddress
address help
_to
address help
_amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function salvageTokensFromContract(
  address _tokenAddress,
  address _to,
  uint256 _amount
) public onlyOwner {
  ERC20TokenInterface(_tokenAddress).transfer(_to, _amount);
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function killContract() public onlyOwner {
  selfdestruct(owner);
}

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

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help constant
Source Code
function safeAdd(uint256 x, uint256 y) internal constant returns (uint256 z) {
  require(x <= MAX_UINT256 - y);
  return x + y;
}

internal SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help constant

Requirements help

Source Code
function safeSub(uint256 x, uint256 y) internal constant returns (uint256 z) {
  require(x >= y);
  return x - y;
}

internal SafeMath.safeMul keyboard_arrow_up

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help constant

Requirements help

Source Code
function safeMul(uint256 x, uint256 y) internal constant returns (uint256 z) {
  if (y == 0) {
    return 0;
  }
  require(x <= (MAX_UINT256 / y));
  return x * y;
}

internal Lockable.lockFromSelf keyboard_arrow_up

Parameters help

Name Type
_untilBlock
uint256 help
_reason
string help

Properties

Visibility help internal
Mutability help transaction
Source Code
function lockFromSelf(uint256 _untilBlock, string _reason) internal {
  lockedUntilBlock = _untilBlock;
  emit ContractLocked(_untilBlock, _reason);
}