Blockwell

Education

ERC20

This contract is an ERC20 token.

Name Education
Symbol EDU
Decimals 8
Total Supply 362,983,094 EDU

About

Stats

Public Functions 19
Event Types 3
Code Size 9,834 bytes

Events (3) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint help

Motd Event

Parameters help
message
string help

Transfer Event

Parameters help
from
address help
to
address help
value
uint help

name Constant

string help
Education

decimals Constant

uint8 help
8

symbol Constant

string help
EDU

controller Variable

address help

motd Variable

string help

finalized Variable

bool help

owner Variable

address help

paused Variable

bool help

newOwner Variable

address help
Internal Variable

Functions Expand All Collapse All

changeOwner keyboard_arrow_up

Parameters help

Name Type
_newOwner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function changeOwner(address _newOwner) onlyOwner {
  newOwner = _newOwner;
}

acceptOwnership keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function acceptOwnership() {
  if (msg.sender == newOwner) {
    owner = newOwner;
  }
}

pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function pause() onlyOwner {
  paused = true;
}

unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function unpause() onlyOwner {
  paused = false;
}

claimTokens keyboard_arrow_up

Parameters help

Name Type
_token
address help
_to
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function claimTokens(address _token, address _to) onlyOwner returns (bool) {
  IToken token = IToken(_token);
  return token.transfer(_to, token.balanceOf(this));
}

finalize keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function finalize() onlyOwner {
  finalized = true;
}

setMotd keyboard_arrow_up

Parameters help

Name Type
_m
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function setMotd(string _m) onlyOwner {
  motd = _m;
  Motd(_m);
}

setController keyboard_arrow_up

Parameters help

Name Type
_c
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function setController(address _c) onlyOwner notFinalized {
  controller = Controller(_c);
}

Parameters help

Name Type
a
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address a) constant returns (uint256) {
  return controller.balanceOf(a);
}

Parameters help

This function has no parameters.

Properties

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

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)
{
  return controller.allowance(_owner, _spender);
}

Parameters help

Name Type
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transfer(address _to, uint256 _value)
  onlyPayloadSize(2)
  notPaused
  returns (bool success)
{
  if (controller.transfer(msg.sender, _to, _value)) {
    Transfer(msg.sender, _to, _value);
    return true;
  }
  return false;
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) onlyPayloadSize(3) notPaused returns (bool success) {
  if (controller.transferFrom(msg.sender, _from, _to, _value)) {
    Transfer(_from, _to, _value);
    return true;
  }
  return false;
}

Parameters help

Name Type
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function approve(address _spender, uint256 _value)
  onlyPayloadSize(2)
  notPaused
  returns (bool success)
{
  if (controller.approve(msg.sender, _spender, _value)) {
    Approval(msg.sender, _spender, _value);
    return true;
  }
  return false;
}

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function increaseApproval(address _spender, uint256 _addedValue)
  onlyPayloadSize(2)
  notPaused
  returns (bool success)
{
  if (controller.increaseApproval(msg.sender, _spender, _addedValue)) {
    uint256 newval = controller.allowance(msg.sender, _spender);
    Approval(msg.sender, _spender, newval);
    return true;
  }
  return false;
}

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  onlyPayloadSize(2)
  notPaused
  returns (bool success)
{
  if (controller.decreaseApproval(msg.sender, _spender, _subtractedValue)) {
    uint256 newval = controller.allowance(msg.sender, _spender);
    Approval(msg.sender, _spender, newval);
    return true;
  }
  return false;
}

burn keyboard_arrow_up

Parameters help

Name Type
_amount
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function burn(uint256 _amount) notPaused {
  controller.burn(msg.sender, _amount);
  Transfer(msg.sender, 0x0, _amount);
}

controllerTransfer keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function controllerTransfer(
  address _from,
  address _to,
  uint256 _value
) onlyController {
  Transfer(_from, _to, _value);
}

controllerApprove keyboard_arrow_up

Parameters help

Name Type
_owner
address help
_spender
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function controllerApprove(
  address _owner,
  address _spender,
  uint256 _value
) onlyController {
  Approval(_owner, _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 SafeMath.safeMul keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeMul(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a * b;
  require(a == 0 || c / a == b);
  return c;
}

internal SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function safeSub(uint256 a, uint256 b) internal returns (uint256) {
  require(b <= a);
  return a - b;
}

internal SafeMath.safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeAdd(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a + b;
  require(c >= a && c >= b);
  return c;
}