Blockwell

Theta Token

ERC20

This contract is an ERC20 token.

Name Theta Token
Symbol THETA
Decimals 18
Total Supply 1,000,000,000 THETA

About

Stats

Public Functions 14
Event Types 2
Code Size 5,851 bytes

Library Use

Uses SafeMath for uint.

Events (2) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint help

name Constant

string help
Theta Token

symbol Constant

string help
THETA

decimals Constant

uint8 help
18

totalSupply Variable

uint help

controller Variable

address help

unlockTime Variable

uint help
Internal Variable

precirculated Variable

mapping(address => bool) help
Internal Variable

balances Variable

mapping(address => uint) help
Internal Variable

allowed Variable

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

Functions Expand All Collapse All

changeController keyboard_arrow_up

Parameters help

Name Type
_newController
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeController(address _newController) public only_controller {
  controller = _newController;
}

getController keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function getController() public constant returns (address) {
  return controller;
}

Parameters help

This function has no parameters.

Properties

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

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
_amount
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

can_transfer checks for the following:
One or more of the following:
Source Code
function transfer(address _to, uint256 _amount)
  public
  can_transfer(msg.sender, _to)
  returns (bool success)
{
  return super.transfer(_to, _amount);
}

Parameters help

Name Type
_from
address help
_to
address help
_amount
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

can_transfer checks for the following:
One or more of the following:
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _amount
) public can_transfer(_from, _to) returns (bool success) {
  return super.transferFrom(_from, _to, _amount);
}

Parameters help

Name Type
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _value)
  public
  returns (bool success)
{
  // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
  if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) {
    revert();
  }
  allowed[msg.sender][_spender] = _value;
  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 allowed[_owner][_spender];
}

mint keyboard_arrow_up

Parameters help

Name Type
_owner
address help
_amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function mint(address _owner, uint256 _amount)
  external
  only_controller
  returns (bool)
{
  totalSupply = totalSupply.add(_amount);
  balances[_owner] = balances[_owner].add(_amount);

  Transfer(0, _owner, _amount);
  return true;
}

allowPrecirculation keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function allowPrecirculation(address _addr) public only_controller {
  precirculated[_addr] = true;
}

disallowPrecirculation keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function disallowPrecirculation(address _addr) public only_controller {
  precirculated[_addr] = false;
}

isPrecirculationAllowed keyboard_arrow_up

Parameters help

Name Type
_addr
address help

Properties

Visibility help public
Mutability help constant
Source Code
function isPrecirculationAllowed(address _addr) public constant returns (bool) {
  return precirculated[_addr];
}

changeUnlockTime keyboard_arrow_up

Parameters help

Name Type
_unlockTime
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeUnlockTime(uint256 _unlockTime) public only_controller {
  unlockTime = _unlockTime;
}

getUnlockTime keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

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.