Blockwell

Rinkeby Roar

ERC20

This contract is an ERC20 token.

Name Rinkeby Roar
Symbol ROAR
Decimals 18
Total Supply 0 ROAR

About

Stats

Public Functions 11
Event Types 4
Code Size 7,170 bytes

Library Use

Uses SafeMath for uint256.

Events (4) keyboard_arrow_up

AddedToGroup Event

Parameters help
groupId
uint8 help
account
address help

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

RemovedFromGroup Event

Parameters help
groupId
uint8 help
account
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

ADMIN Constant

uint8 help
1

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

balances Variable

mapping(address => uint256) help
Internal Variable

supply Variable

uint256 help
Internal Variable

groups Variable

Groups.GroupMap help
Internal Variable

Functions Expand All Collapse All

addAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
function addAdmin(address account) public onlyAdmin {
  _addAdmin(account);
}

removeAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
function removeAdmin(address account) public onlyAdmin {
  _remove(ADMIN, account);
}

isAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view
Source Code
function isAdmin(address account) public view returns (bool) {
  return _contains(ADMIN, account);
}

mint keyboard_arrow_up

Parameters help

Name Type
account
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
function mint(address account, uint256 value) public onlyAdmin returns (bool) {
  balances[account] = balances[account].add(value);
  emit Transfer(address(0), account, value);

  return true;
}

burn keyboard_arrow_up

Parameters help

Name Type
account
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAdmin checks for the following:
null
Source Code
function burn(address account, uint256 value) public onlyAdmin returns (bool) {
  balances[account] = balances[account].sub(value);
  emit Transfer(account, address(0), value);

  return true;
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
account
address help

Properties

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

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)
{
  return 0;
  owner;
  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 returns (bool) {
  require(false);
  return false;
  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) {
  require(false);
  return false;
  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) {
  require(false);
  return false;
  spender;
  value;
}

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 AdminGroup._addAdmin keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _addAdmin(address account) internal {
  _add(ADMIN, account);
}

internal AdminGroup._add keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _add(uint8 groupId, address account) internal {
  groups.add(groupId, account);
  emit AddedToGroup(groupId, account);
}

internal AdminGroup._remove keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _remove(uint8 groupId, address account) internal {
  groups.remove(groupId, account);
  emit RemovedFromGroup(groupId, account);
}

internal AdminGroup._contains keyboard_arrow_up

Parameters help

Name Type
groupId
uint8 help
account
address help

Properties

Visibility help internal
Mutability help view
Source Code
function _contains(uint8 groupId, address account)
  internal
  view
  returns (bool)
{
  return groups.contains(groupId, account);
}