Skip to content

Latest commit

 

History

History
85 lines (58 loc) · 1.84 KB

BasicToken.md

File metadata and controls

85 lines (58 loc) · 1.84 KB

Basic token (BasicToken.sol)

contract BasicToken is ERC20Basic

BasicToken

Basic version of StandardToken, with no allowances.

Contract Members

Constants & Variables

mapping(address => uint256) internal balances;
uint256 internal totalSupply_;

Functions

totalSupply

🔺 overrides ERC20Basic.totalSupply

Total number of tokens in existence

function totalSupply() public view
returns(uint256)

transfer

🔺 overrides ERC20Basic.transfer

Transfer token for a specified address

function transfer(address _to, uint256 _value) public
returns(bool)

Arguments

Name Type Description
_to address The address to transfer to.
_value uint256 The amount to be transferred.

balanceOf

🔺 overrides ERC20Basic.balanceOf

Gets the balance of the specified address.

function balanceOf(address _owner) public view
returns(uint256)

Returns

An uint256 representing the amount owned by the passed address.

Arguments

Name Type Description
_owner address The address to query the the balance of.

Contracts