Blockwell

GoMoney2

ERC20

This contract is an ERC20 token.

Name GoMoney2
Symbol GOM2
Decimals 0
Total Supply 966,640,417 GOM2

About link description

AnimalGo (GOM2) is a cryptocurrency and operates on the Ethereum platform. AnimalGo has a current supply of 966,864,393. The last known price of AnimalGo is 0.00844761 USD and is down -1.03 over the last 24 hours. It is currently trading on 5 active market(s) with $953,967.26 traded over the last 24 hours. More information can be found at https://animalgo.io/.

Stats

Public Functions 15
Event Types 7
Code Size 9,944 bytes

Library Use

Uses SafeMath for uint256.

Events (7) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Burn Event

Parameters help
owner
address help
value
uint256 help

Freeze Event

Parameters help
holder
address help

Mint Event

Parameters 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

Unfreeze Event

Parameters help
holder
address help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

owner Variable

address help

newOwner Variable

address help

frozen Variable

mapping(address => bool) help

initialSupply Variable

uint256 help
Internal Variable

totalSupply_ 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

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));
  newOwner = _newOwner;
}

acceptOwnership keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function acceptOwnership() public onlyNewOwner {
  emit OwnershipTransferred(owner, newOwner);
  owner = newOwner;
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
_holder
address help

Properties

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

Parameters help

Name Type
_holder
address help
_spender
address help

Properties

Visibility help public
Mutability help view
Source Code
function allowance(address _holder, address _spender)
  public
  view
  returns (uint256)
{
  return allowed[_holder][_spender];
}

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
  notFrozen(msg.sender)
  returns (bool)
{
  require(_to != address(0));
  require(_value <= balances[msg.sender]);
  balances[msg.sender] = balances[msg.sender].sub(_value);
  balances[_to] = balances[_to].add(_value);
  emit 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

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public notFrozen(_from) returns (bool) {
  require(_to != address(0));
  require(_value <= balances[_from]);
  require(_value <= allowed[_from][msg.sender]);
  _transfer(_from, _to, _value);
  return true;
}

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

sendwithgas keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help
_fee
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function sendwithgas(
  address _from,
  address _to,
  uint256 _value,
  uint256 _fee
) public onlyOwner notFrozen(_from) returns (bool) {
  uint256 _total;
  _total = _value.add(_fee);
  require(!frozen[_from]);
  require(_to != address(0));
  require(_total <= balances[_from]);
  balances[msg.sender] = balances[msg.sender].add(_fee);
  balances[_from] = balances[_from].sub(_total);
  balances[_to] = balances[_to].add(_value);

  emit Transfer(_from, _to, _value);
  emit Transfer(_from, msg.sender, _fee);

  return true;
}

constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
function() public payable {
  revert();
}

freezeAccount keyboard_arrow_up

Parameters help

Name Type
_holder
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function freezeAccount(address _holder) public onlyOwner returns (bool) {
  require(!frozen[_holder]);
  frozen[_holder] = true;
  emit Freeze(_holder);
  return true;
}

unfreezeAccount keyboard_arrow_up

Parameters help

Name Type
_holder
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function unfreezeAccount(address _holder) public onlyOwner returns (bool) {
  require(frozen[_holder]);
  frozen[_holder] = false;
  emit Unfreeze(_holder);
  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 onlyOwner returns (bool) {
  require(_value <= balances[msg.sender]);
  address burner = msg.sender;
  balances[burner] = balances[burner].sub(_value);
  totalSupply_ = totalSupply_.sub(_value);
  emit Burn(burner, _value);

  return true;
}

burn_address keyboard_arrow_up

Parameters help

Name Type
_target
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function burn_address(address _target) public onlyOwner returns (bool) {
  require(_target != address(0));
  uint256 _targetValue = balances[_target];
  balances[_target] = 0;
  totalSupply_ = totalSupply_.sub(_targetValue);
  address burner = msg.sender;
  emit Burn(burner, _targetValue);
  return true;
}

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 returns (bool) {
  totalSupply_ = totalSupply_.add(_amount);
  balances[owner] = balances[owner].add(_amount);
  emit Transfer(address(0), owner, _amount);
  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 GoMoney2._transfer keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _transfer(
  address _from,
  address _to,
  uint256 _value
) internal {
  require(_to != address(0));
  require(_value <= balances[_from]);
  require(_value <= allowed[_from][msg.sender]);
  balances[_from] = balances[_from].sub(_value);
  balances[_to] = balances[_to].add(_value);
  allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
  emit Transfer(_from, _to, _value);
}

internal GoMoney2.isContract keyboard_arrow_up

Parameters help

Name Type
addr
address help

Properties

Visibility help internal
Mutability help view
Source Code
function isContract(address addr) internal view returns (bool) {
  uint256 size;
  assembly {
    size := extcodesize(addr)
  }
  return size > 0;
}