Blockwell

VIN

ERC20

This contract is an ERC20 token.

Name VIN
Symbol VIN
Decimals 18
Total Supply 1,000,000,000 VIN

About

Stats

Public Functions 14
Event Types 3
Code Size 10,841 bytes

Library Use

Uses SafeMath for uint.

Events (3) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Constant

string help
VIN

symbol Constant

string help
VIN

decimals Constant

uint help
18

totalSupply Constant

uint help
UNKNOWN VALUE * UNKNOWN VALUE

lockPeriod1 Constant

uint help
2 years

lockPeriod2 Constant

uint help
24 weeks

lockPeriodForBuyers Constant

uint help
12 weeks

isActivated Variable

bool help

saleAddress Variable

address help

founder1Address Variable

address help

founder2Address Variable

address help

icoEndTime Variable

uint help

icoStartTime Variable

uint help

contactInformation Variable

string help

owner Variable

address help

whitelistedBeforeActivation Variable

mapping(address => bool) help

isPresaleBuyer Variable

mapping(address => bool) help

balances Variable

mapping(address => uint) help
Internal Variable

allowed Variable

mapping(address => mapping(address => uint)) 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));
  OwnershipTransferred(owner, newOwner);
  owner = newOwner;
}

setContactInformation keyboard_arrow_up

Parameters help

Name Type
info
string help

Properties

Visibility help public
Mutability help transaction
Source Code
function setContactInformation(string info) public onlyOwner {
  contactInformation = info;
}

Parameters help

Name Type
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

isLockTimeEnded checks for the following:

Requirements help

Source Code
function transfer(address _to, uint256 _value)
  external
  isLockTimeEnded(msg.sender)
  whenActivated
  returns (bool)
{
  require(_to != 0x0);

  balances[msg.sender] = balances[msg.sender].sub(_value);
  balances[_to] = balances[_to].add(_value);
  Transfer(msg.sender, _to, _value);
  return true;
}

Parameters help

Name Type
_owner
address help

Properties

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

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)
  external
  whenActivated
  returns (bool)
{
  allowed[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 constant
Source Code
function allowance(address _owner, address _spender)
  external
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

isLockTimeEnded checks for the following:

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) external isLockTimeEnded(_from) whenActivated returns (bool) {
  require(_to != 0x0);
  uint256 _allowance = allowed[_from][msg.sender];

  balances[_from] = balances[_from].sub(_value);
  balances[_to] = balances[_to].add(_value);

  // _allowance.sub(_value) will throw if _value > _allowance
  allowed[_from][msg.sender] = _allowance.sub(_value);
  Transfer(_from, _to, _value);

  return true;
}

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)
  external
  whenActivated
  returns (bool)
{
  allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(
    _addedValue
  );
  Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

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)
  external
  whenActivated
  returns (bool)
{
  uint256 oldValue = allowed[msg.sender][_spender];
  if (_subtractedValue > oldValue) {
    allowed[msg.sender][_spender] = 0;
  } else {
    allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
  }
  Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

activate keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function activate() external onlyOwner returns (bool) {
  isActivated = true;
  return true;
}

editWhitelist keyboard_arrow_up

Parameters help

Name Type
_address
address help
isWhitelisted
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
function editWhitelist(address _address, bool isWhitelisted)
  external
  onlyOwner
  returns (bool)
{
  whitelistedBeforeActivation[_address] = isWhitelisted;
  return true;
}

addToTimeLockedList keyboard_arrow_up

Parameters help

Name Type
addr
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function addToTimeLockedList(address addr)
  external
  onlySaleConract
  returns (bool)
{
  require(addr != 0x0);
  isPresaleBuyer[addr] = true;
  return true;
}

setSaleAddress keyboard_arrow_up

Parameters help

Name Type
newSaleAddress
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function setSaleAddress(address newSaleAddress)
  external
  onlyOwner
  returns (bool)
{
  require(newSaleAddress != 0x0);
  saleAddress = newSaleAddress;
  return true;
}

setIcoEndTime keyboard_arrow_up

Parameters help

Name Type
newTime
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function setIcoEndTime(uint256 newTime) external onlyOwner returns (bool) {
  require(newTime > icoStartTime);
  icoEndTime = newTime;
  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.