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.

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

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() constant public returns (address) {
        return controller;
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

balanceOf keyboard_arrow_up

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
    function balanceOf(address _owner) public constant returns (uint balance) {
        return balances[_owner];
    }

transfer keyboard_arrow_up

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, uint _amount) can_transfer(msg.sender, _to) public returns (bool success) {
        return super.transfer(_to, _amount);
    }

transferFrom keyboard_arrow_up

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, uint _amount) can_transfer(_from, _to) public returns (bool success) {
        return super.transferFrom(_from, _to, _amount);
    }

approve keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function approve(address _spender, uint _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;
    }

allowance keyboard_arrow_up

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 (uint 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, uint _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) only_controller public {
        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) only_controller public {
        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) constant public 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(uint _unlockTime) only_controller public {
        unlockTime = _unlockTime;
    }

getUnlockTime keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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