Blockwell

Dropil

ERC20

This contract is an ERC20 token.

Name Dropil
Symbol DROP
Decimals 18
Total Supply 30,000,000,000 DROP

About

Stats

Public Functions 11
Event Types 3
Code Size 4,894 bytes

Library Use

Uses SafeMath for uint.

Events (3) keyboard_arrow_up

Approval Event

Parameters help
tokenOwner
address help
spender
address help
tokens
uint help

OwnershipTransferred Event

Parameters help
_from
address help
_to
address help

Transfer Event

Parameters help
from
address help
to
address help
tokens
uint help

symbol Variable

string help

name Variable

string help

decimals Variable

uint8 help

_totalSupply Variable

uint help

owner Variable

address help

newOwner Variable

address help

balances Variable

mapping(address => uint) help
Internal Variable

allowed Variable

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

Functions Expand All Collapse All

Parameters help

Name Type
_newOwner
address help

Properties

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

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function acceptOwnership() public {
  require(msg.sender == newOwner);
  OwnershipTransferred(owner, newOwner);
  owner = newOwner;
  newOwner = address(0);
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function totalSupply() public constant returns (uint256) {
  return _totalSupply - balances[address(0)];
}

Parameters help

Name Type
tokenOwner
address help

Properties

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

Parameters help

Name Type
tokenOwner
address help
spender
address help

Properties

Visibility help public
Mutability help constant
Source Code
function allowance(address tokenOwner, address spender)
  public
  constant
  returns (uint256 remaining)
{
  return allowed[tokenOwner][spender];
}

Parameters help

Name Type
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function transfer(address to, uint256 tokens) public returns (bool success) {
  balances[msg.sender] = balances[msg.sender].sub(tokens);
  balances[to] = balances[to].add(tokens);
  Transfer(msg.sender, to, tokens);
  return true;
}

Parameters help

Name Type
spender
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address spender, uint256 tokens)
  public
  returns (bool success)
{
  allowed[msg.sender][spender] = tokens;
  Approval(msg.sender, spender, tokens);
  return true;
}

Parameters help

Name Type
from
address help
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address from,
  address to,
  uint256 tokens
) public returns (bool success) {
  balances[from] = balances[from].sub(tokens);
  allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
  balances[to] = balances[to].add(tokens);
  Transfer(from, to, tokens);
  return true;
}

Parameters help

Name Type
spender
address help
tokens
uint help
data
bytes help

Properties

Visibility help public
Mutability help transaction
Source Code
function approveAndCall(
  address spender,
  uint256 tokens,
  bytes data
) public returns (bool success) {
  allowed[msg.sender][spender] = tokens;
  Approval(msg.sender, spender, tokens);
  ApproveAndCallFallBack(spender).receiveApproval(
    msg.sender,
    tokens,
    this,
    data
  );
  return true;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
function() public payable {
  revert();
}

Parameters help

Name Type
tokenAddress
address help
tokens
uint help

Properties

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

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.