Blockwell

Presearch

ERC20

This contract is an ERC20 token.

Name Presearch
Symbol PRE
Decimals 18
Total Supply 1,000,000,000 PRE

About

Stats

Public Functions 10
Event Types 3
Code Size 5,776 bytes

Library Use

Uses SafeMath for uint256.

Events (3) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

name Constant

string help
Presearch

symbol Constant

string help
PRE

decimals Constant

uint8 help
18

maxSupply Constant

uint256 help
1000000000e18

initialSupply Constant

uint256 help
250000000e18

totalSupply Variable

uint help

owner Variable

address help

crowdsaleAddress Variable

address help

unlockDate Variable

uint help

balances Variable

mapping(address => uint256) help
Internal Variable

allowed Variable

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

Functions Expand All Collapse All

Parameters help

Name Type
_owner
address help

Properties

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

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

tradable checks for the following:

Requirements help

Source Code
function transfer(address _to, uint256 _value)
  public
  onlyPayloadSize(2 * 32)
  tradable
  returns (bool success)
{
  require(_to != address(0));
  balances[msg.sender] = balances[msg.sender].sub(_value);
  balances[_to] = balances[_to].add(_value);
  Transfer(msg.sender, _to, _value);
  return true;
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

tradable checks for the following:

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public onlyPayloadSize(2 * 32) tradable returns (bool success) {
  require(_from != address(0) && _to != address(0));
  uint256 _allowance = allowed[_from][msg.sender];
  balances[_from] = balances[_from].sub(_value);
  balances[_to] = balances[_to].add(_value);
  allowed[_from][msg.sender] = _allowance.sub(_value);
  Transfer(_from, _to, _value);
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function approve(address _spender, uint256 _value)
  public
  returns (bool success)
{
  require(_spender != address(0));
  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 view
Source Code
function allowance(address _owner, address _spender)
  public
  view
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

transferOwnership keyboard_arrow_up

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transferOwnership(address newOwner) public onlyOwner {
  require(newOwner != address(0));
  OwnershipTransferred(owner, newOwner);
  owner = newOwner;
}

mint keyboard_arrow_up

Parameters help

Name Type
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function mint(uint256 _amount) public onlyOwner {
  if (totalSupply.add(_amount) <= maxSupply) {
    balances[msg.sender] = balances[msg.sender].add(_amount);
    totalSupply = totalSupply.add(_amount);
  } else {
    revert();
  }
}

burn keyboard_arrow_up

Parameters help

Name Type
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _amount) public onlyOwner {
  require(balances[msg.sender] >= _amount);
  balances[msg.sender] = balances[msg.sender].sub(_amount);
  totalSupply = totalSupply.sub(_amount);
}

setCrowdsaleAddress keyboard_arrow_up

Parameters help

Name Type
newCrowdsaleAddress
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function setCrowdsaleAddress(address newCrowdsaleAddress) public onlyOwner {
  require(newCrowdsaleAddress != address(0));
  crowdsaleAddress = newCrowdsaleAddress;
}

updateUnlockDate keyboard_arrow_up

Parameters help

Name Type
_newDate
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function updateUnlockDate(uint256 _newDate) public onlyOwner {
  require(_newDate <= 1512018000);
  unlockDate = _newDate;
}

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.