Blockwell

RIALTO

ERC20

This contract is an ERC20 token.

Name RIALTO
Symbol XRL
Decimals 9
Total Supply 100,000,000 XRL

About

Stats

Public Functions 9
Event Types 2
Code Size 5,870 bytes

Events (2) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

lockPercentage Variable

uint256 help

expiration Variable

uint256 help

owner Variable

address help

standard Variable

string help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

supply Variable

uint256 help

balances Variable

mapping(address => uint256) help

allowance Variable

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

Functions Expand All Collapse All

Parameters help

This function has no parameters.

Properties

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

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
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transfer(address _to, uint256 _value) returns (bool success) {
  if (balances[msg.sender] < _value) throw; // Check if the sender has enough

  if (balances[_to] + _value < balances[_to]) throw; // Check for overflows

  if (
    msg.sender == owner &&
    block.timestamp < expiration &&
    (balances[msg.sender] - _value) < (lockPercentage * supply) / 100
  ) throw; // Locked funds

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

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) returns (bool success) {
  if (balances[_from] < _value) throw; // Check if the sender has enough
  if (balances[_to] + _value < balances[_to]) throw; // Check for overflows
  if (_value > allowance[_from][msg.sender]) throw; // Check allowance
  if (
    _from == owner &&
    block.timestamp < expiration &&
    (balances[_from] - _value) < (lockPercentage * supply) / 100
  ) throw; //Locked funds

  balances[_from] -= _value; // Subtract from the sender
  balances[_to] += _value; // Add the same to the recipient
  allowance[_from][msg.sender] -= _value;
  Transfer(_from, _to, _value);
  return true;
}

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 allowance[_owner][_spender];
}

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) returns (bool success) {
  allowance[msg.sender][_spender] = _value;
  Approval(msg.sender, _spender, _value);
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help
_extraData
bytes help

Properties

Visibility help public
Mutability help transaction
Source Code
function approveAndCall(
  address _spender,
  uint256 _value,
  bytes _extraData
) returns (bool success) {
  tokenRecipient spender = tokenRecipient(_spender);
  if (approve(_spender, _value)) {
    spender.receiveApproval(msg.sender, _value, this, _extraData);
    return true;
  }
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function() {
  throw; // Prevents accidental sending of ether
}

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transferOwnership(address newOwner) onlyOwner {
  if (!transfer(newOwner, balances[msg.sender])) throw;
  owner = newOwner;
}

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.