Blockwell

Morpheus.Network

ERC20

This contract is an ERC20 token.

Name Morpheus.Network
Symbol MRPH
Decimals 4
Total Supply 47,897,218 MRPH

About link description

Morpheus.Network (MRPH) is a cryptocurrency and operates on the Ethereum platform. Morpheus.Network has a current supply of 47,897,218 with 47,180,013.8588 in circulation. The last known price of Morpheus.Network is 0.5850278 USD and is up 5.00 over the last 24 hours. It is currently trading on 9 active market(s) with $257,590.46 traded over the last 24 hours. More information can be found at https://morpheus.network/.

Stats

Public Functions 15
Event Types 4
Code Size 14,809 bytes

Events (4) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Freeze Event

Parameters help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

Unfreeze Event

Parameters help

MAX_TOKEN_COUNT Constant

uint256 help
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

MAX_UINT256 Constant

uint256 help
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

owner Variable

address help
Internal Variable

tokenCount Variable

uint256 help
Internal Variable

frozen Variable

bool help
Internal Variable

accounts Variable

mapping(address => uint256) help
Internal Variable

allowances 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 view
Source Code
function totalSupply() public view returns (uint256 supply) {
  return tokenCount;
}

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

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transfer(address _to, uint256 _value) public returns (bool success) {
  if (frozen) return false;
  else return AbstractToken.transfer(_to, _value);
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public returns (bool success) {
  if (frozen) return false;
  else return AbstractToken.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)
{
  allowances[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 allowances[_owner][_spender];
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help pure
Source Code
function name() public pure returns (string result) {
  return "Morpheus.Network";
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help pure
Source Code
function symbol() public pure returns (string result) {
  return "MRPH";
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help pure
Source Code
function decimals() public pure returns (uint8 result) {
  return 4;
}

Parameters help

Name Type
_spender
address help
_currentValue
uint256 help
_newValue
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(
  address _spender,
  uint256 _currentValue,
  uint256 _newValue
) public returns (bool success) {
  if (allowance(msg.sender, _spender) == _currentValue)
    return approve(_spender, _newValue);
  else return false;
}

burnTokens keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burnTokens(uint256 _value) public returns (bool success) {
  if (_value > accounts[msg.sender]) return false;
  else if (_value > 0) {
    accounts[msg.sender] = safeSub(accounts[msg.sender], _value);
    tokenCount = safeSub(tokenCount, _value);

    Transfer(msg.sender, address(0), _value);
    return true;
  } else return true;
}

createTokens keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function createTokens(uint256 _value) public returns (bool success) {
  require(msg.sender == owner);

  if (_value > 0) {
    if (_value > safeSub(MAX_TOKEN_COUNT, tokenCount)) return false;
    accounts[msg.sender] = safeAdd(accounts[msg.sender], _value);
    tokenCount = safeAdd(tokenCount, _value);

    Transfer(address(0), msg.sender, _value);
  }

  return true;
}

setOwner keyboard_arrow_up

Parameters help

Name Type
_newOwner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function setOwner(address _newOwner) public {
  require(msg.sender == owner);

  owner = _newOwner;
}

freezeTransfers keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function freezeTransfers() public {
  require(msg.sender == owner);

  if (!frozen) {
    frozen = true;
    Freeze();
  }
}

unfreezeTransfers keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function unfreezeTransfers() public {
  require(msg.sender == owner);

  if (frozen) {
    frozen = false;
    Unfreeze();
  }
}

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 SafeMath.safeAdd keyboard_arrow_up

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help pure
Source Code
function safeAdd(uint256 x, uint256 y) internal pure returns (uint256 z) {
  assert(x <= MAX_UINT256 - y);
  return x + y;
}

internal SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help pure

Requirements help

Source Code
function safeSub(uint256 x, uint256 y) internal pure returns (uint256 z) {
  assert(x >= y);
  return x - y;
}

internal SafeMath.safeMul keyboard_arrow_up

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help pure
Source Code
function safeMul(uint256 x, uint256 y) internal pure returns (uint256 z) {
  if (y == 0) return 0; // Prevent division by zero at the next line
  assert(x <= MAX_UINT256 / y);
  return x * y;
}