Blockwell

aXpire

ERC20

This contract is an ERC20 token.

Name aXpire
Symbol AXPR
Decimals 18
Total Supply 345,014,001 AXPR

About

Stats

Public Functions 17
Event Types 8
Code Size 10,886 bytes

Library Use

Uses SafeMath for uint.

Events (8) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Burn Event

Parameters help
burner
address help
amount
uint256 help

CreateToken Event

Parameters help
_to
address help
_value
uint256 help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Pause Event

Parameters help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Unpause Event

Parameters help

name Constant

string help
aXpire

symbol Constant

string help
AXPR

decimals Constant

uint256 help
18

icoTokenExchangeRate Variable

uint256 help

tokenCreationCap Variable

uint256 help

tokenSaleActive Variable

bool help

haltIco Variable

bool help

dead Variable

bool help

totalSupply Variable

uint256 help

paused Variable

bool help

owner Variable

address help

ethFundDeposit Variable

address help
Internal Variable

escrowFundDeposit Variable

address 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

Requirements help

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

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

Source Code
function transfer(address _to, uint256 _value)
  public
  whenNotPaused
  returns (bool)
{
  return super.transfer(_to, _value);
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public whenNotPaused returns (bool) {
  return super.transferFrom(_from, _to, _value);
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function approve(address _spender, uint256 _value)
  public
  whenNotPaused
  returns (bool)
{
  return super.approve(_spender, _value);
}

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

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 {
  require(_amount > 0);
  require(_amount <= balances[msg.sender]);
  // no need to require _amount <= totalSupply, since that would imply the
  // sender's balance is greater than the totalSupply, which *should* be an assertion failure

  address burner = msg.sender;
  balances[burner] = SafeMath.sub(balances[burner], _amount);
  totalSupply = SafeMath.sub(totalSupply, _amount);
  emit Transfer(burner, address(0), _amount);
  emit Burn(burner, _amount);
}

burnFrom keyboard_arrow_up

Parameters help

Name Type
_from
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burnFrom(address _from, uint256 _amount) public onlyOwner {
  require(_from != address(0));
  require(_amount > 0);
  require(_amount <= balances[_from]);
  balances[_from] = SafeMath.sub(balances[_from], _amount);
  totalSupply = SafeMath.sub(totalSupply, _amount);
  emit Transfer(_from, address(0), _amount);
  emit Burn(_from, _amount);
}

pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function pause() public onlyOwner whenNotPaused {
  paused = true;
  emit Pause();
}

unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function unpause() public onlyOwner whenPaused {
  paused = false;
  emit Unpause();
}

createTokens keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
function createTokens() external payable {
  if (!tokenSaleActive) revert();
  if (haltIco) revert();
  if (msg.value == 0) revert();

  uint256 tokens;
  tokens = SafeMath.mul(msg.value, icoTokenExchangeRate); // check that we're not over totals
  uint256 checkedSupply = SafeMath.add(totalSupply, tokens);

  // return money if something goes wrong
  if (tokenCreationCap < checkedSupply) revert(); // odd fractions won't be found

  totalSupply = checkedSupply;
  balances[msg.sender] += tokens; // safeAdd not needed; bad semantics to use here
  emit CreateToken(msg.sender, tokens); // logs token creation
}

setIcoTokenExchangeRate keyboard_arrow_up

Parameters help

Name Type
_icoTokenExchangeRate
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function setIcoTokenExchangeRate(uint256 _icoTokenExchangeRate)
  external
  onlyOwner
{
  icoTokenExchangeRate = _icoTokenExchangeRate;
}

setHaltIco keyboard_arrow_up

Parameters help

Name Type
_haltIco
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
function setHaltIco(bool _haltIco) external onlyOwner {
  haltIco = _haltIco;
}

sendFundHome keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function sendFundHome() external onlyOwner {
  // move to operational
  if (!ethFundDeposit.send(address(this).balance)) revert(); // send the eth to tge International
}

sendFundHomeAmt keyboard_arrow_up

Parameters help

Name Type
_amt
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function sendFundHomeAmt(uint256 _amt) external onlyOwner {
  if (!ethFundDeposit.send(_amt * 10**decimals)) revert(); // send the eth to tge International
}

toggleDead keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function toggleDead() external onlyOwner returns (bool) {
  dead = !dead;
}

endIco keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function endIco() external onlyOwner {
  // end ICO
  // ensure that sale is active. is set to false at the end. can only be performed once.
  require(tokenSaleActive == true);
  tokenSaleActive = false;
}

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.