Blockwell

Aurora DAO

ERC20

This contract is an ERC20 token.

Name Aurora DAO
Symbol AURA
Decimals 18
Total Supply 1,000,000,000 AURA

About

Stats

Public Functions 11
Event Types 1
Code Size 4,895 bytes

Events (1) keyboard_arrow_up

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

locked Variable

bool help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

totalSupply Variable

uint256 help

balancesUploaded Variable

bool help

owner Variable

address help

balanceOf Variable

mapping(address => uint256) help

allowance Variable

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

Functions Expand All Collapse All

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function setOwner(address _owner) returns (bool success) {
  owner = _owner;
  return true;
}

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

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

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

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

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

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

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transfer(address _to, uint256 _value) public returns (bool success) {
  _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

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public returns (bool success) {
  require(_value <= allowance[_from][msg.sender]); // Check allowance
  allowance[_from][msg.sender] -= _value;
  _transfer(_from, _to, _value);
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function approve(address _spender, uint256 _value)
  public
  returns (bool success)
{
  require(!locked);
  allowance[msg.sender][_spender] = _value;
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help
_extraData
bytes help

Properties

Visibility help public
Mutability help transaction
Source Code
function approveAndCall(
  address _spender,
  uint256 _value,
  bytes _extraData
) public returns (bool success) {
  tokenRecipient spender = tokenRecipient(_spender);
  if (approve(_spender, _value)) {
    spender.receiveApproval(msg.sender, _value, this, _extraData);
    return true;
  }
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
recipients
address[] help
balances
uint256[] help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function uploadBalances(address[] recipients, uint256[] balances) onlyOwner {
  require(!balancesUploaded);
  uint256 sum = 0;
  for (uint256 i = 0; i < recipients.length; i++) {
    balanceOf[recipients[i]] = safeAdd(balanceOf[recipients[i]], balances[i]);
    sum = safeAdd(sum, balances[i]);
  }
  balanceOf[owner] = safeSub(balanceOf[owner], sum);
}

Parameters help

This function has no parameters.

Properties

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

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 AURA._transfer keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function _transfer(
  address _from,
  address _to,
  uint256 _value
) internal {
  require(!locked || msg.sender == owner);
  require(_to != 0x0);
  require(balanceOf[_from] >= _value);
  require(balanceOf[_to] + _value > balanceOf[_to]);
  uint256 previousBalances = balanceOf[_from] + balanceOf[_to];
  balanceOf[_from] -= _value;
  balanceOf[_to] += _value;
  Transfer(_from, _to, _value);
  require(balanceOf[_from] + balanceOf[_to] == previousBalances);
}