Blockwell

Simple Token

ERC20

This contract is an ERC20 token.

Name Simple Token
Symbol ST
Decimals 18
Total Supply 800,000,000 ST

About link

OST (OST) is a cryptocurrency and operates on the Ethereum platform. OST has a current supply of 800,000,000 with 763,665,268.9074074 in circulation. The last known price of OST is 0.00990065 USD and is up 151.87 over the last 24 hours. It is currently trading on 7 active market(s) with $1,373,323.02 traded over the last 24 hours. More information can be found at https://ost.com.

Stats

Public Functions 15
Event Types 8
Code Size 11,806 bytes

Events (8) keyboard_arrow_up

AdminAddressChanged Event

Parameters help
_newAddress
address help

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Burnt Event

Parameters help
_from
address help
_amount
uint256 help

Finalized Event

Parameters help

OpsAddressChanged Event

Parameters help
_newAddress
address help

OwnershipTransferCompleted Event

Parameters help
_newOwner
address help

OwnershipTransferInitiated Event

Parameters help
_proposedOwner
address help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

TOKEN_SYMBOL Constant

string help
ST

TOKEN_NAME Constant

string help
Simple Token

TOKEN_DECIMALS Constant

uint8 help
18

DECIMALSFACTOR Constant

uint256 help
UNKNOWN VALUE

TOKENS_MAX Constant

uint256 help

finalized Variable

bool help

owner Variable

address help

proposedOwner Variable

address help

opsAddress Variable

address help

adminAddress Variable

address help

tokenName Variable

string help
Internal Variable

tokenSymbol Variable

string help
Internal Variable

tokenDecimals Variable

uint8 help
Internal Variable

tokenTotalSupply 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

initiateOwnershipTransfer keyboard_arrow_up

Parameters help

Name Type
_proposedOwner
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwner checks for the following:
null
Source Code
function initiateOwnershipTransfer(address _proposedOwner)
  public
  onlyOwner
  returns (bool)
{
  proposedOwner = _proposedOwner;

  OwnershipTransferInitiated(_proposedOwner);

  return true;
}

completeOwnershipTransfer keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function completeOwnershipTransfer() public returns (bool) {
  require(msg.sender == proposedOwner);

  owner = proposedOwner;
  proposedOwner = address(0);

  OwnershipTransferCompleted(owner);

  return true;
}

setAdminAddress keyboard_arrow_up

Parameters help

Name Type
_adminAddress
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwnerOrAdmin checks for the following:
One or more of the following: -null - ORnull
Source Code
function setAdminAddress(address _adminAddress)
  external
  onlyOwnerOrAdmin
  returns (bool)
{
  require(_adminAddress != owner);
  require(_adminAddress != address(this));
  require(!isOps(_adminAddress));

  adminAddress = _adminAddress;

  AdminAddressChanged(_adminAddress);

  return true;
}

setOpsAddress keyboard_arrow_up

Parameters help

Name Type
_opsAddress
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOwnerOrAdmin checks for the following:
One or more of the following: -null - ORnull
Source Code
function setOpsAddress(address _opsAddress)
  external
  onlyOwnerOrAdmin
  returns (bool)
{
  require(_opsAddress != owner);
  require(_opsAddress != address(this));
  require(!isAdmin(_opsAddress));

  opsAddress = _opsAddress;

  OpsAddressChanged(_opsAddress);

  return true;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
function name() public view returns (string) {
  return tokenName;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
function symbol() public view returns (string) {
  return tokenSymbol;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
function decimals() public view returns (uint8) {
  return tokenDecimals;
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
_owner
address help

Properties

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

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

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) public returns (bool success) {
  checkTransferAllowed(msg.sender, _to);

  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

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public returns (bool success) {
  checkTransferAllowed(msg.sender, _to);

  return super.transferFrom(_from, _to, _value);
}

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)
  public
  returns (bool success)
{
  allowed[msg.sender][_spender] = _value;

  Approval(msg.sender, _spender, _value);

  return true;
}

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) public returns (bool success) {
  require(_value <= balances[msg.sender]);

  balances[msg.sender] = balances[msg.sender].sub(_value);
  tokenTotalSupply = tokenTotalSupply.sub(_value);

  Burnt(msg.sender, _value);

  return true;
}

finalize keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null

Requirements help

Source Code
function finalize() external onlyAdmin returns (bool success) {
  require(!finalized);

  finalized = true;

  Finalized();

  return true;
}

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.

internal SimpleToken.checkTransferAllowed keyboard_arrow_up

Parameters help

Name Type
_sender
address help
_to
address help

Properties

Visibility help private
Mutability help view

Requirements help

Source Code
function checkTransferAllowed(address _sender, address _to) private view {
  if (finalized) {
    // Everybody should be ok to transfer once the token is finalized.
    return;
  }

  // Owner and Ops are allowed to transfer tokens before the sale is finalized.
  // This allows the tokens to move from the TokenSale contract to a beneficiary.
  // We also allow someone to send tokens back to the owner. This is useful among other
  // cases, for the Trustee to transfer unlocked tokens back to the owner (reclaimTokens).
  require(isOwnerOrOps(_sender) || _to == owner);
}

internal Owned.isOwner keyboard_arrow_up

Parameters help

Name Type
_address
address help

Properties

Visibility help internal
Mutability help view
Source Code
function isOwner(address _address) internal view returns (bool) {
  return (_address == owner);
}

internal OpsManaged.isAdmin keyboard_arrow_up

Parameters help

Name Type
_address
address help

Properties

Visibility help internal
Mutability help view
Source Code
function isAdmin(address _address) internal view returns (bool) {
  return (adminAddress != address(0) && _address == adminAddress);
}

internal OpsManaged.isOps keyboard_arrow_up

Parameters help

Name Type
_address
address help

Properties

Visibility help internal
Mutability help view
Source Code
function isOps(address _address) internal view returns (bool) {
  return (opsAddress != address(0) && _address == opsAddress);
}

internal OpsManaged.isOwnerOrOps keyboard_arrow_up

Parameters help

Name Type
_address
address help

Properties

Visibility help internal
Mutability help view
Source Code
function isOwnerOrOps(address _address) internal view returns (bool) {
  return (isOwner(_address) || isOps(_address));
}

internal Owned.isOwner keyboard_arrow_up

Parameters help

Name Type
_address
address help

Properties

Visibility help internal
Mutability help view
Source Code
function isOwner(address _address) internal view returns (bool) {
  return (_address == owner);
}