Blockwell

blocktrade.com

ERC20

This contract is an ERC20 token.

Name blocktrade.com
Symbol BTT
Decimals 18
Total Supply 57,746,762 BTT

About

Stats

Public Functions 21
Event Types 5
Code Size 11,507 bytes

Events (5) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Burn Event

Parameters help
from
address help
value
uint256 help

TokenFrozenSince Event

Parameters help
_frozenSinceBlock
uint256 help
_reason
string help

TokenFrozenUntil Event

Parameters help
_frozenUntilBlock
uint256 help
_reason
string help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

initialSupply Variable

uint256 help

supply Variable

uint256 help

tokenFrozenUntilNotice Variable

string help

tokenFrozenSinceNotice Variable

string help

airDropFinished Variable

bool help

owner Variable

address help

tokenFrozenUntilBlock Variable

uint256 help

tokenFrozenSinceBlock Variable

uint256 help

blockLock Variable

uint256 help

balances Variable

mapping(address => uint256) help
Internal Variable

allowances Variable

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

restrictedAddresses Variable

mapping(address => bool) help
Internal Variable

Functions Expand All Collapse All

transferOwnership keyboard_arrow_up

Parameters help

Name Type
newOwner
address help

Properties

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

editRestrictedAddress keyboard_arrow_up

Parameters help

Name Type
_restrictedAddress
address help
_restrict
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
function editRestrictedAddress(address _restrictedAddress, bool _restrict)
  public
  onlyOwner
{
  if (!restrictedAddresses[_restrictedAddress] && _restrict) {
    restrictedAddresses[_restrictedAddress] = _restrict;
  } else if (restrictedAddresses[_restrictedAddress] && !_restrict) {
    restrictedAddresses[_restrictedAddress] = _restrict;
  } else {
    revert();
  }
}

tokenName keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function tokenName() public constant returns (string _tokenName) {
  return name;
}

tokenSymbol keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function tokenSymbol() public constant returns (string _tokenSymbol) {
  return symbol;
}

tokenDecimals keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function tokenDecimals() public constant returns (uint8 _tokenDecimals) {
  return decimals;
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
_tokenOwner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _tokenOwner)
  public
  constant
  returns (uint256 accountBalance)
{
  return balances[_tokenOwner];
}

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];
}

getFreezeUntilDetails keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function getFreezeUntilDetails()
  public
  constant
  returns (uint256 frozenUntilBlock, string notice)
{
  return (tokenFrozenUntilBlock, tokenFrozenUntilNotice);
}

getFreezeSinceDetails keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function getFreezeSinceDetails()
  public
  constant
  returns (uint256 frozenSinceBlock, string notice)
{
  return (tokenFrozenSinceBlock, tokenFrozenSinceNotice);
}

isRestrictedAddress keyboard_arrow_up

Parameters help

Name Type
_queryAddress
address help

Properties

Visibility help public
Mutability help constant
Source Code
function isRestrictedAddress(address _queryAddress)
  public
  constant
  returns (bool answer)
{
  return restrictedAddresses[_queryAddress];
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transfer(address _to, uint256 _value)
  public
  unfrozenToken
  instForbiddenAddress(_to)
  returns (bool success)
{
  require(balances[msg.sender] >= _value); // Check if the sender has enough
  require(balances[_to] + _value >= balances[_to]); // Check for overflows

  balances[msg.sender] -= _value; // Subtract from the sender
  balances[_to] += _value; // Add the same to the recipient
  emit Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _value)
  public
  unfrozenToken
  returns (bool success)
{
  allowances[msg.sender][_spender] = _value; // Set allowance
  emit Approval(msg.sender, _spender, _value); // Raise Approval event
  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 unfrozenToken instForbiddenAddress(_to) returns (bool success) {
  require(balances[_from] >= _value); // Check if the sender has enough
  require(balances[_to] + _value >= balances[_to]); // Check for overflows
  require(_value <= allowances[_from][msg.sender]); // Check allowance

  balances[_from] -= _value; // Subtract from the sender
  balances[_to] += _value; // Add the same to the recipient
  allowances[_from][msg.sender] -= _value; // Deduct allowance for this address
  emit Transfer(_from, _to, _value); // Notify anyone listening that this transfer took place
  return true;
}

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) public onlyOwner returns (bool success) {
  require(balances[msg.sender] >= _value); // Check if the sender has enough
  balances[msg.sender] -= _value; // Subtract from the sender
  supply -= _value;
  emit Burn(msg.sender, _value);
  return true;
}

freezeTransfersUntil keyboard_arrow_up

Parameters help

Name Type
_frozenUntilBlock
uint256 help
_freezeNotice
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function freezeTransfersUntil(uint256 _frozenUntilBlock, string _freezeNotice)
  public
  onlyOwner
  returns (bool success)
{
  tokenFrozenUntilBlock = _frozenUntilBlock;
  tokenFrozenUntilNotice = _freezeNotice;
  emit TokenFrozenUntil(_frozenUntilBlock, _freezeNotice);
  return true;
}

freezeTransfersSince keyboard_arrow_up

Parameters help

Name Type
_frozenSinceBlock
uint256 help
_freezeNotice
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function freezeTransfersSince(uint256 _frozenSinceBlock, string _freezeNotice)
  public
  onlyOwner
  returns (bool success)
{
  tokenFrozenSinceBlock = _frozenSinceBlock;
  tokenFrozenSinceNotice = _freezeNotice;
  emit TokenFrozenSince(_frozenSinceBlock, _freezeNotice);
  return true;
}

unfreezeTransfersUntil keyboard_arrow_up

Parameters help

Name Type
_unfreezeNotice
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function unfreezeTransfersUntil(string _unfreezeNotice)
  public
  onlyOwner
  returns (bool success)
{
  tokenFrozenUntilBlock = 0;
  tokenFrozenUntilNotice = _unfreezeNotice;
  emit TokenFrozenUntil(0, _unfreezeNotice);
  return true;
}

unfreezeTransfersSince keyboard_arrow_up

Parameters help

Name Type
_unfreezeNotice
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function unfreezeTransfersSince(string _unfreezeNotice)
  public
  onlyOwner
  returns (bool success)
{
  tokenFrozenSinceBlock = (2**256) - 1;
  tokenFrozenSinceNotice = _unfreezeNotice;
  emit TokenFrozenSince((2**256) - 1, _unfreezeNotice);
  return true;
}

airDrop keyboard_arrow_up

Parameters help

Name Type
_beneficiary
address help
_tokens
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function airDrop(address _beneficiary, uint256 _tokens)
  public
  onlyOwner
  returns (bool success)
{
  require(!airDropFinished);
  balances[owner] -= _tokens;
  balances[_beneficiary] += _tokens;
  return true;
}

endAirDrop keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function endAirDrop() public onlyOwner returns (bool success) {
  require(!airDropFinished);
  airDropFinished = true;
  return 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.