Blockwell

AION

ERC20

This contract is an ERC20 token.

Name AION
Symbol AION
Decimals 8
Total Supply 465,934,587 AION

About

Stats

Public Functions 26
Event Types 5
Code Size 20,744 bytes

Events (5) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint help

Burn Event

Parameters help
from
address help
to
bytes32 help
value
uint help

Claimed Event

Parameters help
claimer
address help
value
uint help

Motd Event

Parameters help
message
string help

Transfer Event

Parameters help
from
address help
to
address help
value
uint help

name Constant

string help
AION

decimals Constant

uint8 help
8

symbol Constant

string help
AION

controller Variable

address help

motd Variable

string help

burnAddress Variable

address help

burnable Variable

bool help

finalized Variable

bool help

owner Variable

address help

paused Variable

bool help

newOwner Variable

address help
Internal Variable

Functions Expand All Collapse All

changeOwner keyboard_arrow_up

Parameters help

Name Type
_newOwner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeOwner(address _newOwner) onlyOwner {
  newOwner = _newOwner;
}

acceptOwnership keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function acceptOwnership() {
  if (msg.sender == newOwner) {
    owner = newOwner;
  }
}

pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function unpause() onlyOwner {
  paused = false;
}

claimTokens keyboard_arrow_up

Parameters help

Name Type
_token
address help
_to
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function claimTokens(address _token, address _to) onlyOwner returns (bool) {
  IToken token = IToken(_token);
  return token.transfer(_to, token.balanceOf(this));
}

finalize keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

setMotd keyboard_arrow_up

Parameters help

Name Type
_m
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function setMotd(string _m) onlyOwner {
  motd = _m;
  Motd(_m);
}

setController keyboard_arrow_up

Parameters help

Name Type
_c
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function setController(address _c) onlyOwner notFinalized {
  controller = Controller(_c);
}

Parameters help

Name Type
a
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address a) constant returns (uint256) {
  return controller.balanceOf(a);
}

Parameters help

This function has no parameters.

Properties

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

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)
  constant
  returns (uint256)
{
  return controller.allowance(_owner, _spender);
}

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)
  notPaused
  returns (bool success)
{
  if (controller.transfer(msg.sender, _to, _value)) {
    Transfer(msg.sender, _to, _value);
    return true;
  }
  return false;
}

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
) notPaused returns (bool success) {
  if (controller.transferFrom(msg.sender, _from, _to, _value)) {
    Transfer(_from, _to, _value);
    return true;
  }
  return false;
}

Parameters help

Name Type
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function approve(address _spender, uint256 _value)
  notPaused
  returns (bool success)
{
  // promote safe user behavior
  if (controller.approve(msg.sender, _spender, _value)) {
    Approval(msg.sender, _spender, _value);
    return true;
  }
  return false;
}

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function increaseApproval(address _spender, uint256 _addedValue)
  notPaused
  returns (bool success)
{
  if (controller.increaseApproval(msg.sender, _spender, _addedValue)) {
    uint256 newval = controller.allowance(msg.sender, _spender);
    Approval(msg.sender, _spender, newval);
    return true;
  }
  return false;
}

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  notPaused
  returns (bool success)
{
  if (controller.decreaseApproval(msg.sender, _spender, _subtractedValue)) {
    uint256 newval = controller.allowance(msg.sender, _spender);
    Approval(msg.sender, _spender, newval);
    return true;
  }
  return false;
}

controllerTransfer keyboard_arrow_up

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 controllerTransfer(
  address _from,
  address _to,
  uint256 _value
) onlyController {
  Transfer(_from, _to, _value);
}

controllerApprove keyboard_arrow_up

Parameters help

Name Type
_owner
address help
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function controllerApprove(
  address _owner,
  address _spender,
  uint256 _value
) onlyController {
  Approval(_owner, _spender, _value);
}

controllerBurn keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
bytes32 help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function controllerBurn(
  address _from,
  bytes32 _to,
  uint256 _value
) onlyController {
  Burn(_from, _to, _value);
}

controllerClaim keyboard_arrow_up

Parameters help

Name Type
_claimer
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function controllerClaim(address _claimer, uint256 _value) onlyController {
  Claimed(_claimer, _value);
}

setBurnAddress keyboard_arrow_up

Parameters help

Name Type
_address
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function setBurnAddress(address _address) onlyController {
  burnAddress = _address;
}

enableBurning keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function enableBurning() onlyController {
  burnable = true;
}

disableBurning keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function disableBurning() onlyController {
  burnable = false;
}

burn keyboard_arrow_up

Parameters help

Name Type
_to
bytes32 help
_amount
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function burn(bytes32 _to, uint256 _amount)
  notPaused
  burnEnabled
  returns (bool success)
{
  return controller.burn(msg.sender, _to, _amount);
}

claimByProof keyboard_arrow_up

Parameters help

Name Type
data
bytes32[] help
proofs
bytes32[] help
number
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function claimByProof(
  bytes32[] data,
  bytes32[] proofs,
  uint256 number
) notPaused burnEnabled returns (bool success) {
  return controller.claimByProof(msg.sender, data, proofs, number);
}

claim keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function claim() notPaused burnEnabled returns (bool success) {
  return controller.claim(msg.sender);
}

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

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeMul(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a * b;
  require(a == 0 || c / a == b);
  return c;
}

internal SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function safeSub(uint256 a, uint256 b) internal returns (uint256) {
  require(b <= a);
  return a - b;
}

internal SafeMath.safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeAdd(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a + b;
  require(c >= a && c >= b);
  return c;
}