Blockwell

Dao.Casino

ERC20

This contract is an ERC20 token.

Name Dao.Casino
Symbol BET
Decimals 18
Total Supply 167,270,821 BET

About

Stats

Public Functions 11
Event Types 3
Code Size 9,794 bytes

Events (3) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

OwnershipTransferred Event

Parameters help
_from
address help
_to
address help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

name Constant

string help
Dao.Casino

symbol Constant

string help
BET

decimals Constant

uint8 help
18

D160 Constant

uint256 help
0x0010000000000000000000000000000000000000000

sealed Variable

bool help

owner Variable

address help

newOwner Variable

address help

_totalSupply Variable

uint256 help
Internal Variable

balances Variable

mapping(address => uint256) help
Internal Variable

allowed Variable

mapping(address => mapping(address => uint256)) 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) 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) {
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
_owner
address help

Properties

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

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transfer(address _to, uint256 _amount) returns (bool success) {
  if (
    balances[msg.sender] >= _amount && // User has balance
    _amount > 0 && // Non-zero transfer
    balances[_to] + _amount > balances[_to] // Overflow check
  ) {
    balances[msg.sender] = balances[msg.sender].sub(_amount);
    balances[_to] = balances[_to].add(_amount);
    Transfer(msg.sender, _to, _amount);
    return true;
  } else {
    return false;
  }
}

Parameters help

Name Type
_spender
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

One or more of the following:
Source Code
function approve(address _spender, uint256 _amount) returns (bool success) {
  // Borrowed from the MiniMeToken contract
  // To change the approve amount you first have to reduce the addresses`
  //  allowance to zero by calling `approve(_spender,0)` if it is not
  //  already 0 to mitigate the race condition described here:
  //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
  require((_amount == 0) || (allowed[msg.sender][_spender] == 0));

  allowed[msg.sender][_spender] = _amount;
  Approval(msg.sender, _spender, _amount);
  return true;
}

Parameters help

Name Type
_from
address help
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _amount
) returns (bool success) {
  if (
    balances[_from] >= _amount && // From a/c has balance
    allowed[_from][msg.sender] >= _amount && // Transfer approved
    _amount > 0 && // Non-zero transfer
    balances[_to] + _amount > balances[_to] // Overflow check
  ) {
    balances[_from] = balances[_from].sub(_amount);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);
    balances[_to] = balances[_to].add(_amount);
    Transfer(_from, _to, _amount);
    return true;
  } else {
    return false;
  }
}

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 remaining)
{
  return allowed[_owner][_spender];
}

fill keyboard_arrow_up

Parameters help

Name Type
data
uint256[] help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function fill(uint256[] data) onlyOwner {
  require(!sealed);
  for (uint256 i = 0; i < data.length; i++) {
    address account = address(data[i] & (D160 - 1));
    uint256 amount = data[i] / D160;
    // Prevent duplicates
    if (balances[account] == 0) {
      balances[account] = amount;
      _totalSupply = _totalSupply.add(amount);
      Transfer(0x0, account, amount);
    }
  }
}

seal keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function seal() onlyOwner {
  require(!sealed);
  sealed = true;
}

transferAnyERC20Token keyboard_arrow_up

Parameters help

Name Type
tokenAddress
address help
amount
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferAnyERC20Token(address tokenAddress, uint256 amount)
  onlyOwner
  returns (bool success)
{
  return ERC20Token(tokenAddress).transfer(owner, amount);
}

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.