Blockwell

Spendcoin

ERC20

This contract is an ERC20 token.

Name Spendcoin
Symbol SPND
Decimals 18
Total Supply 2,000,000,000 SPND

About

Stats

Public Functions 12
Event Types 4
Code Size 9,174 bytes

Library Use

Uses SafeMath for uint.

Approval Event

Parameters help
tokenOwner
address help
spender
address help
tokens
uint help

Freezed Event

Parameters help
starttime
uint help
endtime
uint help

Transfer Event

Parameters help
from
address help
to
address help
tokens
uint help

UnFreezed Event

Parameters help

Functions Expand All Collapse All

freezeTime keyboard_arrow_up

Parameters help

Name Type
_startTime
uint help
_endTime
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function freezeTime(uint _startTime, uint _endTime) public onlyOwner {
        isLocked = 1;
        lockStartTime = _startTime;
        lockEndTime = _endTime;
        
        emit Freezed(lockStartTime, lockEndTime);
    }

freeze keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function freeze() public onlyOwner {
        isLocked = 1;
        lockStartTime = 0;
        lockEndTime = 90000000000;
        
        emit Freezed(lockStartTime, lockEndTime);
    }

unfreeze keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function unfreeze() public onlyOwner {
        isLocked = 0;
        lockStartTime = 0;
        lockEndTime = 0;
        
        emit UnFreezed();
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
    function totalSupply() public constant returns (uint) {

        return _totalSupply  - balances[address(0)];

    }

balanceOf keyboard_arrow_up

Parameters help

Name Type
tokenOwner
address help

Properties

Visibility help public
Mutability help constant
Source Code
    function balanceOf(address tokenOwner) public constant returns (uint balance) {

        return balances[tokenOwner];

    }

allowance keyboard_arrow_up

Parameters help

Name Type
tokenOwner
address help
spender
address help

Properties

Visibility help public
Mutability help constant
Source Code
    function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {

        return allowed[tokenOwner][spender];

    }

transfer keyboard_arrow_up

Parameters help

Name Type
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transfer(address to, uint tokens) public returns (bool success) {

        balances[msg.sender] = balances[msg.sender].sub(tokens);

        balances[to] = balances[to].add(tokens);

        emit Transfer(msg.sender, to, tokens);

        return true;

    }

approve keyboard_arrow_up

Parameters help

Name Type
spender
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function approve(address spender, uint tokens) public returns (bool success) {

        allowed[msg.sender][spender] = tokens;

        emit Approval(msg.sender, spender, tokens);

        return true;

    }

transferFrom keyboard_arrow_up

Parameters help

Name Type
from
address help
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {

        balances[from] = balances[from].sub(tokens);

        allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);

        balances[to] = balances[to].add(tokens);

        emit Transfer(from, to, tokens);

        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 {


    }

withdraw keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
    function withdraw() public onlyOwner returns (bool result) {
        address tokenaddress = this;
        return owner.send(tokenaddress.balance);
    }

transferAnyERC20Token keyboard_arrow_up

Parameters help

Name Type
tokenAddress
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
    function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {

        return ERC20Interface(tokenAddress).transfer(owner, tokens);

    }