Skip to main content

BasicERC20

BasicERC20#

Mostly copied from Consensys EIP-20 implementation: https://github.com/ConsenSys/Tokens/blob/fdf687c69d998266a95f15216b1955a4965a0a6d/contracts/eip20/EIP20.sol

Functions#

constructor(uint256 _initialAmount) (public)
totalSupply() โ†’ uint256 (public)
transfer(address _to, uint256 _value) โ†’ bool success (public)
transferFrom(address _from, address _to, uint256 _value) โ†’ bool success (public)
balanceOf(address _owner) โ†’ uint256 balance (public)
approve(address _spender, uint256 _value) โ†’ bool success (public)
allowance(address _owner, address _spender) โ†’ uint256 remaining (public)

Events#

Transfer(address from, address to, uint256 value)

Emitted when value tokens are moved from one account (from) to another (to). Note that value may be zero.

Approval(address owner, address spender, uint256 value)

Emitted when the allowance of a spender for an owner is set by a call to {approve}. value is the new allowance.